package com.jy.adscm.operation.newhscrb.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jy.adscm.operation.mask.bean.KzMaterial;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2020-06-15
 */
public class NhcMaterialDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 入库信息
     */
    private Long pid;
    /**
     * 出库唯一编码
     */
    private String code;
    /**
     * 重量
     */
    private Float weight;
    /**
     * 出库时间
     */
    private Date outStockDate;
    /**
     * 出库人
     */
    private String outStocker;
    @TableField(exist = false)
    private String outStockerName;
    /**
     * 1(正常使用) -1(报废)
     */
    private Integer result;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 备注
     */
    private String remark;
    /**
     * 创建人
     */
    private String creator;
    @TableField(exist = false)
    private String creatorName;

     @TableField(exist = false)
    private NhcMaterial nhcMaterial;

    public NhcMaterial getNhcMaterial() {
        return nhcMaterial;
    }

    public void setNhcMaterial(NhcMaterial nhcMaterial) {
        this.nhcMaterial = nhcMaterial;
    }

    public String getOutStockerName() {
        return outStockerName;
    }

    public void setOutStockerName(String outStockerName) {
        this.outStockerName = outStockerName;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Float getWeight() {
        return weight;
    }

    public void setWeight(Float weight) {
        this.weight = weight;
    }
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    public Date getOutStockDate() {
        return outStockDate;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd")
    public void setOutStockDate(Date outStockDate) {
        this.outStockDate = outStockDate;
    }

    public String getOutStocker() {
        return outStocker;
    }

    public void setOutStocker(String outStocker) {
        this.outStocker = outStocker;
    }

    public Integer getResult() {
        return result;
    }

    public void setResult(Integer result) {
        this.result = result;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getCreateTime() {
        return createTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    @Override
    public String toString() {
        return "NhcMaterialDetail{" +
        "id=" + id +
        ", pid=" + pid +
        ", code=" + code +
        ", weight=" + weight +
        ", outStockDate=" + outStockDate +
        ", outStocker=" + outStocker +
        ", result=" + result +
        ", createTime=" + createTime +
        ", remark=" + remark +
        ", creator=" + creator +
        "}";
    }
}
